<!DOCTYPE html>
<html>
<head>
	<title>服务监控</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script type="text/javascript">
	    var path = window.document.location.href;
		var pathName = window.document.location.pathname;
		var hostPath = path.substring(0, path.indexOf(pathName));
		var projectName = pathName.substring(0, pathName.substr(1).indexOf("/") + 1);
		document.write('<scr' + 'ipt src="' + projectName + '/js/html/header.js"></scr'+'ipt>');
    </script>
</head>
<body>
	<table id="dg" style="width:auto;height:auto" fitColumns="true">
		<thead>
			<tr>
				<th field="id" data-options="hidden:true">ID</th>
				<th field="tradeCode" 	width="100" align="right"
					data-options="
					sortable:true,
					remoteSort:true,
					editor:{
						type:'validatebox',
						options:{
							required:true
						}
					}">交易码</th>
				<th field="tradeName" align="left"
					data-options="
					sortable:true,
					remoteSort:false"
					>交易名称</th>
				<th field="tradeGroup" align="left"
					data-options="
					sortable:true,
					remoteSort:false"
					>交易组</th>
				<th field="maxExec" width="100" align="right"
					data-options="
					sortable:true,
					remoteSort:false,
					editor:{
						type:'validatebox',
						options:{
							required:true
						}
					}">最大并发数</th>
				<th field="maxRate" width="100" align="right"
					data-options="
					sortable:true,
					remoteSort:false,
					editor:{
						type:'validatebox',
						options:{
							required:true
						}
					}">最大流量(笔/秒)</th>
				<th field="currExec" 	width="100" align="right"
					data-options="
					sortable:true,
					remoteSort:false,
					editor:{
						type:'validatebox',
						options:{
							required:true
						}
					}">当前并发数</th>
				<th field="timeCycleName" 	width="100" align="right"
					data-options="
					sortable:true,
					remoteSort:false,
					editor:{
						type:'validatebox',
						options:{
							required:true
						}
					}">周期(秒)</th>
				<th field="timeTakeNum" 	width="100" align="right"
					data-options="
					sortable:true,
					remoteSort:false,
					editor:{
						type:'validatebox',
						options:{
							required:true
						}
					}">交易笔数</th>
				<th field="timeSpeed" 	width="100" align="right"
					data-options="
					sortable:true,
					remoteSort:false,
					editor:{
						type:'validatebox',
						options:{
							required:true
						}
					}">响应时间(毫秒)</th>
				<th field="timeSuccRate" 	width="100" align="right"
					data-options="
					sortable:true,
					remoteSort:false,
					editor:{
						type:'validatebox',
						options:{
							required:true
						}
					}">成功率(%)</th>
				<th field="tradeStatus" 	width="100" align="right"
					data-options="
					sortable:true,
					remoteSort:false,
					editor:{
						type:'validatebox',
						options:{
							required:true
						}
					}"
					>服务状态</th>
				<th field="tradeMsg" 	width="100" align="right"
					data-options="
					sortable:true,
					remoteSort:false,
					editor:{
						type:'validatebox',
						options:{
							required:true
						}
					}"
					>返回消息</th>
				<th field="implClass" 	width="100" align="right"
					data-options="
					sortable:true,
					remoteSort:false,
					editor:{
						type:'validatebox',
						options:{
							required:true
						}
					}"
					>交易实现</th>
				<th field="databaseChain" 	width="100" align="right"
					data-options="
					sortable:true,
					remoteSort:false,
					editor:{
						type:'validatebox',
						options:{
							required:true
						}
					}"
					>数据调用</th>
			</tr>
		</thead>
	</table>
	<div id="dg-buttons" style="height:auto">
		<div style="margin-bottom:5px">
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" 	onclick="dlgEdit()">修改</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-print',plain:true" 	onclick="dlgExport()">导出</a>
		</div>
		<div>
			<span>交易码:</span>
			<input type="text" id="tradeCode" name="tradeCode" class="easyui-validatebox" />
			<span>交易名称:</span>
			<input type="text" id="tradeName" name="tradeName" class="easyui-validatebox" />
			<span>时间周期:</span>
			<input type="text" id="timeCycleName" name="timeCycleName" class="easyui-validatebox" />
			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search" onclick="dgop.find()">查询</a>
		</div>
	</div>
	<div id="dlg-buttons">
    	<a href="javascript:dlgSave()" class="easyui-linkbutton" iconCls="icon-ok">保存</a> 
        <a href="javascript:dlgClose()" class="easyui-linkbutton" iconCls="icon-cancel">关闭</a>
    </div>
	
	<div id="dlg" class="easyui-dialog" closed="true" style="width:730px;height:280px;padding:10px 10px;" buttons="#dlg-buttons">
        <form method="post" id="fm">
            <table cellspacing="8px;">
            	<td><input id="id" name="id" style="display:none" required="true" ></td>
                <tr>
                    <td>交易码：</td>
                    <td>
                    	<input type="text" id="tradeCode" name="tradeCode"
                    	class="easyui-validatebox" required="true" readonly="true" />&nbsp;
                    	<span style="color: red">*</span>
                    </td>
                    <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
                    <td>交易名称：</td>
                    <td>
                    	<input type="text" id="tradeName" name="tradeName"
                        class="easyui-validatebox" required="true" readonly="true" />&nbsp;
                        <span style="color: red">*</span>
                    </td>
                </tr>
                <tr>
                    <td>最大并发数：</td>
                    <td><input type="text" id="maxExec" name="maxExec"
                        class="easyui-numberbox" required="true" />&nbsp;
					<span style="color: red">*</span>
                    </td>
                    <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
                    <td>最大流量(笔/秒)：</td>
                    <td><input type="text" id="maxRate" name="maxRate"
                        class="easyui-numberbox" required="true" />&nbsp;
                        <span style="color: red">*</span>
                    </td>
                </tr>
                <tr>
                    <td>服务状态：</td>
                    <td><input id="tradeStatus" name="tradeStatus" data-options=""
                    	class="easyui-combobox" required="true" >&nbsp;
                    	<span style="color: red">*</span>
                    </td>
                    <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
                    <td>返回消息：</td>
                    <td><input type="text" id="tradeMsg" name="tradeMsg"
                        class="easyui-validatebox" />&nbsp;
                    </td>
                </tr>
                <tr>
                	<td>交易实现：</td>
                    <td><input id="implClass" name="implClass" data-options=""
                    	class="easyui-textbox" >&nbsp;
                    	<span style="color: red">*</span>
                    </td>
                    <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
                    <td>数据调用：</td>
                    <td><input id="databaseChain" name="databaseChain" data-options=""
                    	style="width: 130px; height: 40px;"
                    	class="easyui-textbox" >&nbsp;
                    </td>
                </tr>
                
            </table>
        </form>
    </div>
	<script>
		var initd = {
			queryDataURL:"/servicegovern/query",//查询URL
			saveDataURL:"/servicegovern/save",//查询URL
			dg:$('#dg'),
			pageSize:20,
			dataDicList:{'3':['tradeStatus']}//需加载的 DATADIC 字典名+作用的字段名
		};

	</script>
</body>
</html>

